package com.deyuanyun.pic.ctrl.app.enumeration;

/**
 * @Description 腐蚀控制appcode编码
 * @author Jerry
 * @date 2016-09-23
 */
public enum CtrlAppCode {
    /**
     * 成功
     */
    SUCCESS("0000", "操作成功"),
    /**
     * 密码错误
     */
    CODE_FAIL("0001", "密码错误"),
    /**
     * 登录无效
     */
    LODE_FAIL("0002", "用户未登录"),
    /**
     * 服务器错误;
     */
    SERVICE_FAIL("0003","服务器错误"),
    /**
     * 参数无效
     */
    PARAMETER_FAIL("0004","参数无效"),
    /**
     * 用户ID不存在
     */
    USER_FAIL("0005","用户不存在"),
    /**
     * 提交发球收球顺序错误
     */
    ORDER_FAIL("0006","对不起，请先发球"),
    /**
     * 账号过期
     */
    USER_LIMIT("0007","账号过期"),
    /**
     * 账号过期
     */
    USER_REPEAT("0008","登录账号重复,请联系管理员"),
    /**
     * 验证码发送成功
     */
    CAPTCHA_SUCCESS("0009","验证码发送成功"),
    /**
     * 验证码发送失败
     */
    CAPTCHA_FAIL("0010","验证码发送失败"),
    /**
     * 验证码不能为空
     */
    CAPTCHA_NULL("0011","验证码为空"),
    /**
     * 错误次数过多，请重新输入验证码
     */
    CAPTCHA_FAILMORE("0012","错误次数过多，请稍后输入验证码"),
    /**
     * 验证码错误
     */
    CAPTCHA_ERROR("0013","验证吗错误"),
    /**
     * 上传文件成功
     */
    UPLOAD_SUCCESS("0014","上传成功"),
    /**
     * 上传文件失败
     */
    UPLOAD_FAIL("0015","上传失败"),

    /**
     * 用户被禁用
     */
    USER_FORBIDDEN("0016","该账户已被禁用");

    private String code;
    private String label;

    public String getCode() {
        return code;
    }
    public void setCode(String code) {
        this.code = code;
    }
    public String getLabel() {
        return label;
    }
    public void setLabel(String label) {
        this.label = label;
    }
    private CtrlAppCode(String code, String label) {
        this.code = code;
        this.label = label;
    }
}
